package com.xiaowen.projectDataCode.service;

import com.xiaowen.codeData.entity.CodeData;
import com.xiaowen.projectDataCode.entity.ProjectDataCode;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 项目数据编码表 服务类
 * </p>
 *
 * @author yf-wenhao
 * @since 2024-10-03
 */
public interface ProjectDataCodeService extends IService<ProjectDataCode> {

    Map<Integer, List<ProjectDataCode>> queryProjectDataCodeMap(Integer projectId);

    void deleteByProjectDataId(Integer projectId, List<Integer> dataIdList);

    List<ProjectDataCode> queryDataCodeByCode(Integer projectId, List<Integer> codeList);

    List<ProjectDataCode> queryDataCodeByDataId(Integer projectId, List<Integer> dataIdList);

    void deleteByIds(List<Integer> idList);

    void updateByCode(CodeData reqDTO);

    void deleteByDataCode(Integer projectId, Integer parentCode);
}
